package com.org.any.autocar;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;

import com.autocar.reader.R;
import com.org.any.autocar.fragment.MainFragmentActivity;

public class TestActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.test_layout);
	}

	public void main(View v) {
		Intent intent = new Intent(this, MainFragmentActivity.class);
		startActivity(intent);
		overridePendingTransition(R.anim.right_in_anim, R.anim.fade_out);
	}

	public void login(View v) {
		Intent intent = new Intent(this, LoginActivity.class);
		startActivity(intent);
		overridePendingTransition(R.anim.right_in_anim, R.anim.fade_out);
	}

	public void register(View v) {
		Intent intent = new Intent(this, RegisterActivity.class);
		startActivity(intent);
		overridePendingTransition(R.anim.right_in_anim, R.anim.fade_out);
	}
	
	
	public void setting(View v) {
//		Intent intent = new Intent(this, SettingActivity.class);
//		startActivity(intent);
//		overridePendingTransition(R.anim.right_in_anim, R.anim.fade_out);
	}
	public void binding(View v) {
		Intent intent = new Intent(this, AccounBindingActivity.class);
		startActivity(intent);
		overridePendingTransition(R.anim.right_in_anim, R.anim.fade_out);
	}
	public void font(View v) {
		Intent intent = new Intent(this, SettingFontSizeActivity.class);
		startActivity(intent);
		overridePendingTransition(R.anim.right_in_anim, R.anim.fade_out);
	}

	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event) {
		if (keyCode == KeyEvent.KEYCODE_BACK) {
			finish();
			return true;
		}
		return super.onKeyDown(keyCode, event);
	}
	
	
	@Override
	protected void onActivityResult(int requestCode, int resultCode, Intent data) {
		// TODO Auto-generated method stub
		super.onActivityResult(requestCode, resultCode, data);
	}
}
